package com.ahtg.demo.controllers;

import com.ahtg.demo.service.TestService;
import com.ahtg.minispring.beans.AutoWired;
import com.ahtg.minispring.web.mvc.Controller;
import com.ahtg.minispring.web.mvc.RequestMapping;
import com.ahtg.minispring.web.mvc.RequestParam;

@Controller
public class TestController {
    @AutoWired
    private TestService testService;

    @RequestMapping("/test.json")
    public Integer test(@RequestParam("num") String num) {
        return testService.back(num);
    }

}